package study.java.future;

public class SynMethodAndBlock {

    public synchronized void synmethod(){
        System.out.println("synmethod");

    }

    public  void synblock(){
        synchronized (this){
            System.out.println("synblock");
        }
    }
}
